package org.phantom.securityframework.datapermission;

/**
 * 数据提供解析器,根据DataFilter配置解析一个DataProvider
 * @author apple
 *
 */
public interface DataProviderResolver {
	
	
	public static final String DEFAULT_PROVIDER = "provider.default";
	public static final String MAPPER_PROVIDER = "provider.mapper";
	
	/**
	 * 解析数据提供器
	 * @see com.cmetex.datapermission.DataFilter
	 * @see com.cmetex.datapermission.DataProvider
	 * @param filter 详见DataFilter.value()
	 * @return
	 */
	public DataProvider resolveDataProvider(String filter);
}
